var PORT = 8080;

var express = require('express'),
    app = express();

var http = require('http'),
    url = require('url'),
    fs = require('fs'),
    path = require('path'),
    pathname = path.resolve(__dirname);

app.use(express.static(__dirname));

//app.get("/", function (req, res) {
//    res.sendFile(pathname + '/dist/index.html')
//})

app.listen(PORT, function (error) {
    if (error) {
        console.error(error)
    } else {
        console.info("==> Listening on port %s. Open up http://localhost:%s/ in your browser.", PORT, PORT)
    }
})